package com.itheima.day06.mySimpleDateFormat.test3;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
        String oldTime = "2000年12月12日 00时00分00秒";
        Date oldTimeDate = sdf.parse(oldTime);
        long oldTimeL = oldTimeDate.getTime();
        long newTimeL = oldTimeL + 24 * 60 * 60 * 1000;
        Date newTimeDate = new Date(newTimeL);
        String newTime = sdf.format(newTimeDate);
        System.out.println(newTime);

    }
}
